package org.example.x;

import org.example.AbstractStrategyRouter;
import org.example.StrategyHandler;
import org.example.parm.InClass;
import org.example.parm.OutClass;
import org.example.xn.A1;
import org.example.xn.A2;

public class AMapper implements AbstractStrategyRouter.StrategyMapper<InClass, OutClass> {
    @Override
    public StrategyHandler<InClass, OutClass> get(InClass param) {
        switch (param.getType()){
            case 1:
                return new A1<>();
            case 2:
                return new A2<>();
        }
        return null;
    }
}
